package com.superhelper.superhelper_web.service.deliver;

import java.util.List;

import com.superhelper.common.domain.DadaReasons;
import com.superhelper.common.domain.TakeOutOrder;

public interface IDeliverService {

	/**
	 * 发单(定时任务发)
	 * 
	 * @param orderId
	 * @param free
	 * @param tip
	 * @return
	 */
	public boolean addTask(Long orderId);

	/**
	 * 查询运费
	 * 
	 * @param orderId
	 * @return
	 */
	public TakeOutOrder queryDeliverFee(Long orderId);

	/**
	 * 增加小费
	 * 
	 * @param orderId
	 * @param tip
	 * @return
	 */
	public boolean addTips(Long orderId, Double tip) throws Exception;

	public boolean cancel(Long id, Integer canel_reasonId) throws Exception;

	public List<DadaReasons> getReasonsList(Long id);

	public boolean testOrder(Long orderId, Integer type);

}
